package io.openmessaging.storage.dledger.protocol;

public class PushEntryResponse extends RequestOrResponse {

    //
    private Long index;
    //
    private long beginIndex;
    //
    private long endIndex;
    //
    private int count;

    public Long getIndex() {
        return index;
    }

    public void setIndex(Long index) {
        this.index = index;
    }

    public long getBeginIndex() {
        return beginIndex;
    }

    public void setBeginIndex(long beginIndex) {
        this.beginIndex = beginIndex;
    }

    public long getEndIndex() {
        return endIndex;
    }

    public void setEndIndex(long endIndex) {
        this.endIndex = endIndex;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "PushEntryResponse{" +
                "index=" + index +
                ", beginIndex=" + beginIndex +
                ", endIndex=" + endIndex +
                ", count=" + count +
                ", code=" + code +
                ", leaderId='" + leaderId + '\'' +
                '}';
    }
}
